package main

import "github.com/gin-gonic/gin"

type Controller struct{}

func (c *Controller) SayHello(ctx *gin.Context) {
    ctx.String(200, "hello world")
}

func main() {
	r := gin.Default()
    c := &Controller{}
    r.GET("/hello", c.SayHello)
    r.Run(":80")
}